import request from '@/utils/request'

export function login(mobile, password) {
  return request({
    url: '/user/user-info/login',
    method: 'post',
    data: {
      userMobile:mobile,
      loginPassword:password
    }
  })
}

export function getInfo(token) {
  return request({
    url: '/user/user-info/info',
    method: 'post',
    params: { token }
  })
}

export function logout() {
  return request({
    url: '/user/user-info/logout',
    method: 'post'
  })
}

export function register(userInfo) {
  return request({
    url: '/user/user-info/register',
    method: 'post',
    data:userInfo
  })
}

